function doSearch() {
	$('#tt').datagrid('load', {
		loginType : $("#loginType").combobox('getValue'),
		startTime : $('#startTime').datebox('getValue'),
		endTime : $('#endTime').datebox('getValue')
	});
}

$(function(){
    $('#tt').datagrid({
        view: detailview,
        detailFormatter:function(index,row){
            return '<div class="ddv" style="padding:5px 0"></div>';
        },
        onExpandRow: function(index,row){
            var ddv = $(this).datagrid('getRowDetail',index).find('div.ddv');
            ddv.panel({
                height:'auto',
                border:false,
                cache:false,
                href:'/newTask/execution/loginType/detailMarkList?loginType='+row.loginType+'&day='+row.day,
                onLoad:function(){
                    $('#tt').datagrid('fixDetailRowHeight',index);
                }
            });
            $('#tt').datagrid('fixDetailRowHeight',index);
        }
    });
});

function formatterLoginType(value,row,index) {
	console.info(value);
	if(value == null){
		return "谷歌不登录";
	} else {
		return value;
	}
}

